.class final Les/p60$a;
.super Ljava/lang/Thread;
.source "WebdavFileSystem.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/p60;->a(Ljava/lang/String;J)Ljava/io/OutputStream;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;

.field final synthetic b:J

.field final synthetic c:Lde/aflx/sardine/Sardine;

.field final synthetic d:Ljava/lang/String;

.field final synthetic e:Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;JLde/aflx/sardine/Sardine;Ljava/lang/String;Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/p60$a;->a:Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;

    iput-wide p2, p0, Les/p60$a;->b:J

    iput-object p4, p0, Les/p60$a;->c:Lde/aflx/sardine/Sardine;

    iput-object p5, p0, Les/p60$a;->d:Ljava/lang/String;

    iput-object p6, p0, Les/p60$a;->e:Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    const/4 v0, 0x0

    .line 1
    :try_start_0
    new-instance v1, Lorg/apache/http/entity/InputStreamEntity;

    iget-object v2, p0, Les/p60$a;->a:Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;

    iget-wide v3, p0, Les/p60$a;->b:J

    invoke-direct {v1, v2, v3, v4}, Lorg/apache/http/entity/InputStreamEntity;-><init>(Ljava/io/InputStream;J)V

    .line 2
    iget-object v2, p0, Les/p60$a;->c:Lde/aflx/sardine/Sardine;

    iget-object v3, p0, Les/p60$a;->d:Ljava/lang/String;

    const-string v4, "application/octet-stream"

    invoke-interface {v2, v3, v1, v4, v0}, Lde/aflx/sardine/Sardine;->put(Ljava/lang/String;Lorg/apache/http/HttpEntity;Ljava/lang/String;Z)V

    .line 3
    iget-object v1, p0, Les/p60$a;->e:Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;->setResult(Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    .line 4
    :try_start_1
    iget-object v2, p0, Les/p60$a;->c:Lde/aflx/sardine/Sardine;

    invoke-interface {v2}, Lde/aflx/sardine/Sardine;->abort()V

    .line 5
    iget-object v2, p0, Les/p60$a;->c:Lde/aflx/sardine/Sardine;

    invoke-interface {v2}, Lde/aflx/sardine/Sardine;->destroy()V

    .line 6
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    .line 7
    iget-object v1, p0, Les/p60$a;->e:Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;->setResult(Z)V

    .line 8
    iget-object v0, p0, Les/p60$a;->a:Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :catch_1
    :goto_0
    return-void
.end method
